package com.besttone.util;

import com.alibaba.fastjson.JSON;

public class JsonUtil<T>
{
  public static String ObjectToJsonString(Object object)
  {
    return JSON.toJSONString(object);
  }

  public static <T> T jsonStringToObject(String jsonString, Class<T> clazz) {
    return JSON.parseObject(jsonString, clazz);
  }
}